package com.chinackts.common.log.service;//package com.chinackts.common.log.service;
//
//import com.chinackts.common.log.model.CusDecDataType;
//import com.chinackts.common.log.model.Log;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.boot.CommandLineRunner;
//import org.springframework.stereotype.Component;
//
//import java.util.Date;
//
//@RequiredArgsConstructor
//@Component
//@Slf4j
//public class AppRunner implements CommandLineRunner {
//
//    private final LogService logService;
//
//    @Override
//    public void run(String... args) throws Exception {
//        log.info("************************开始写入日志************************");
//        logService.log(Log.builder()
//                        .s_id("TEST000222222222222222222222201")
//                .org_code("TEST00001")
//                .type(CusDecDataType.CUSTOMS_DECLARATION.getCode())
//                .request_url("http://localhost:8080/api/v1/test")
//                .request_msg("{\"id\":\"123\"}")
//                .response_msg("{\"id\":\"123\"}")
//                .create_time(new Date())
//                .time(1000L)
//                .build());
//    }
//}
